package com.ruoyi.model.records.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.records.mapper.ModelRecordsMapper;
import com.ruoyi.model.records.domain.ModelRecords;
import com.ruoyi.model.records.service.IModelRecordsService;

/**
 * 模型运行记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
@Service
public class ModelRecordsServiceImpl extends ServiceImpl<ModelRecordsMapper, ModelRecords> implements IModelRecordsService //修改
{
    @Autowired
    private ModelRecordsMapper modelRecordsMapper;

    /**
     * 查询模型运行记录
     * 
     * @param id 模型运行记录主键
     * @return 模型运行记录
     */
    @Override
    public ModelRecords selectModelRecordsById(Long id)
    {
        return modelRecordsMapper.selectModelRecordsById(id);
    }

    /**
     * 查询模型运行记录列表
     * 
     * @param modelRecords 模型运行记录
     * @return 模型运行记录
     */
    @Override
    public List<ModelRecords> selectModelRecordsList(ModelRecords modelRecords)
    {
        return modelRecordsMapper.selectModelRecordsList(modelRecords);
    }

    /**
     * 新增模型运行记录
     * 
     * @param modelRecords 模型运行记录
     * @return 结果
     */
    @Override
    public int insertModelRecords(ModelRecords modelRecords)
    {
        return modelRecordsMapper.insertModelRecords(modelRecords);
    }

    /**
     * 修改模型运行记录
     * 
     * @param modelRecords 模型运行记录
     * @return 结果
     */
    @Override
    public int updateModelRecords(ModelRecords modelRecords)
    {
        return modelRecordsMapper.updateModelRecords(modelRecords);
    }

    /**
     * 批量删除模型运行记录
     * 
     * @param ids 需要删除的模型运行记录主键
     * @return 结果
     */
    @Override
    public int deleteModelRecordsByIds(Long[] ids)
    {
        return modelRecordsMapper.deleteModelRecordsByIds(ids);
    }

    /**
     * 删除模型运行记录信息
     * 
     * @param id 模型运行记录主键
     * @return 结果
     */
    @Override
    public int deleteModelRecordsById(Long id)
    {
        return modelRecordsMapper.deleteModelRecordsById(id);
    }
}
